package com.建造者模式.imporve;

public class Client {
    public static void main(String[] args) {
        /**
         * 盖普通房
         */
        CommonHouse commonHouse = new CommonHouse();
        //创建调用者
        HoseDirector director = new HoseDirector(commonHouse);
        //调用者开始调用，盖房
        House house = director.constructHouse();
        System.out.println("==========================================================");
        /**
         * 创建高楼
         */
        HighBuild highBuild = new HighBuild();
        director.setHoseBuild(highBuild);
        director.constructHouse();
    }
}
